<?php
/**
 * @package WordPress
 * @subpackage Default_Theme
 */
?>
</div>
<aside id="footer">
<div class="main">
<aside class="primary">

<?php if (get_option('swt_tqq') == 'Display') { ?><li class="tqq"><a href="<?php echo stripslashes(get_option('swt_tqqurl')); ?>" target="_blank" class="icon2" title="我的腾讯微博"></a></li><?php { echo ''; } ?><?php } else { } ?>
<?php if (get_option('swt_tsina') == 'Display') { ?><li class="tsina"><a href="<?php echo stripslashes(get_option('swt_tsinaurl')); ?>" target="_blank" class="icon3" title="我的新浪微博"></a></li><?php { echo ''; } ?><?php } else { } ?>
<?php if (get_option('swt_mailqq') == 'Display') { ?><li class="rssmail"><a href="http://mail.qq.com/cgi-bin/feed?u=<?php bloginfo('rss2_url'); ?>" target="_blank" class="icon4" title="用QQ邮箱阅读空间订阅我的博客">QQ邮箱阅读空间订阅我的博客</a></li><?php { echo ''; } ?><?php } else { } ?>

    <h1>随机推荐文章</h1>
    <ul class="recommend-list">
        <?php
            global $post;
            $rand_posts = get_posts('numberposts=6&orderby=rand');
            foreach( $rand_posts as $post ) :
                 setup_postdata($post);
        ?>
        <li>
			<?php theme_thumbnail(); ?>
            <span class="title"> <?php echo mb_strimwidth(get_the_title(),0,28,"...");?></span>
            
        </li>
        <?php endforeach;?>
    </ul>
</aside>
<aside class="aside">
    <h1>压箱底</h1>
    <?php include('includes/sticky_posts.php'); ?>
</aside>
</div>
</aside>
<footer class="bottom">
<div class="main">
	<small>
	<?php bloginfo('name'); ?>. Powered by <a href="http://www.wordpress.org/" rel="external">WordPress</a>.
	 Theme by <a href="http://html5jscss.com" rel="external">小北</a>.
	  <?php if (get_option('swt_beian') == 'Display') { ?>
	  <a href="http://www.miitbeian.gov.cn/" rel="external"><?php echo stripslashes(get_option('swt_beianhao')); ?></a>
	  <?php { echo '.'; } ?>
	  <?php } else { } ?>
	   <?php if (get_option('swt_tj') == 'Display') { ?>
	   <?php echo stripslashes(get_option('swt_tjcode')); ?>
	   <?php { echo '.'; } ?>	<?php } else { } ?>
	</small>   
  	<?php echo wp_nav_menu( array('container' => 'ul','menu_id' => 'foot-nav', 'menu_class' => 'foot-nav', 'theme_location' => 'footnav' ) ) ?>
</div>     
</footer>
<?php wp_footer(); ?>
<script src="<?php bloginfo('stylesheet_directory'); ?>/js/jqurey-1.7.1.js"></script>
<script src="<?php bloginfo('stylesheet_directory'); ?>/js/index.min.js"></script>
<?php if(is_single() || is_page()){ ?>
	<script src="<?php bloginfo('template_url') ?>/js/article.js"></script>
<?php } ?>



</body>
</html>
